package com.jt.aop;

import com.jt.vo.SysResult;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class SystemException {
@ExceptionHandler(RuntimeException.class)
public SysResult fail(Exception e){
e.printStackTrace();
return SysResult.fail();

}
}
